import {
  Categorize,
  CategorizeCn,
  Component,
  ComponentCn,
  LibComponent,
  LibComponentCn,
} from "./types/replacement.js";

export const setting = {
  /**
   * 组件列表
   * @param name 组件名称
   * @param des 组件描述
   * @param global 是否为全局组件
   * @param isLib 是否需要进行打包
   * @param status 组件当前状态 0：开发阶段、1：测试阶段、2：正式发版
   */
  components: [
    {
      name: LibComponent.TABLE,
      des: LibComponentCn.TABLE,
      status: 2,
      isLib: true,
      global: true,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.FORM,
      des: LibComponentCn.FORM,
      status: 2,
      isLib: true,
      global: true,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.FLEX_SCROLL,
      des: LibComponentCn.FLEX_SCROLL,
      status: 2,
      isLib: true,
      global: true,
      Categorize: Categorize.LAYOUT,
      CategorizeCn: CategorizeCn.LAYOUT,
    },
    {
      name: LibComponent.JSON_VIEWER,
      des: LibComponentCn.JSON_VIEWER,
      status: 2,
      isLib: true,
      global: false,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.MIMD_TREE,
      des: LibComponentCn.MIMD_TREE,
      status: 2,
      isLib: true,
      global: false,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: "CisThreeJs",
      des: "ThreeJs3D应用场景",
      status: 0,
      isLib: false,
      global: false,
    },
    {
      name: "CisThreeJsTest",
      des: "3D应用场景测试",
      status: 0,
      isLib: false,
      global: false,
    },
    {
      name: LibComponent.PREVIEW_PDF,
      des: LibComponentCn.PREVIEW_PDF,
      status: 1,
      isLib: true,
      global: false,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.PREVIEW_WORD,
      des: LibComponentCn.PREVIEW_WORD,
      status: 1,
      isLib: true,
      global: false,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.PREVIEW_EXCEL,
      des: LibComponentCn.PREVIEW_EXCEL,
      status: 1,
      isLib: true,
      global: false,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: "GanttChartTest",
      des: "甘特图测试页面",
      status: 0,
      isLib: false,
      global: false,
    },
    {
      name: LibComponent.Tree_INPUT,
      des: LibComponentCn.Tree_INPUT,
      status: 1,
      isLib: true,
      global: true,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: LibComponent.TREE_SELECT,
      des: LibComponentCn.TREE_SELECT,
      status: 1,
      isLib: true,
      global: true,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: LibComponent.BUSINESS_FLOW,
      des: LibComponentCn.BUSINESS_FLOW,
      status: 0,
      isLib: true,
      global: true,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.TREE,
      des: LibComponentCn.TREE,
      status: 0,
      isLib: true,
      global: true,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: LibComponent.OFFICE_WORD,
      des: LibComponentCn.OFFICE_WORD,
      status: 0,
      isLib: true,
      global: true,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
  ],
  lowCode: [
    {
      name: Component.PAGE_DESIGN,
      status: 1,
      des: `低代码-${ComponentCn.PAGE_DESIGN}`,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.CUSTOM_TABLE,
      status: 1,
      des: `低代码-${ComponentCn.CUSTOM_TABLE}`,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.DYNAMIC_FORM,
      status: 1,
      des: `低代码-${ComponentCn.DYNAMIC_FORM}`,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.BUTTON,
      status: 1,
      des: `低代码-${ComponentCn.BUTTON}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: Component.TREE,
      status: 1,
      des: `低代码-${ComponentCn.TREE}`,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.CHECKBOX,
      status: 0,
      des: `低代码-${ComponentCn.CHECKBOX}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: Component.RADIO,
      status: 0,
      des: `低代码-${ComponentCn.RADIO}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: Component.CASCADER,
      status: 1,
      des: `低代码-${ComponentCn.CASCADER}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: Component.TRANSFER,
      status: 0,
      des: `低代码-${ComponentCn.TRANSFER}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: Component.SELECT,
      status: 1,
      des: `低代码-${ComponentCn.SELECT}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
    {
      name: "CisPageDesignTest",
      status: 1,
      des: "低代码设计器(重构)",
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.TREE_INPUT,
      des: `低代码-${ComponentCn.TREE_INPUT}`,
      status: 1,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.BAR_CHART,
      des: `低代码-${ComponentCn.BAR_CHART}`,
      status: 1,
      Categorize: Categorize.CHART,
      CategorizeCn: CategorizeCn.CHART,
    },
    {
      name: Component.LINE_CHART,
      des: `低代码-${ComponentCn.LINE_CHART}`,
      status: 1,
      Categorize: Categorize.CHART,
      CategorizeCn: CategorizeCn.CHART,
    },
    {
      name: "CisCraftEmpty",
      status: 0,
      des: "工艺流程图",
      Categorize: Categorize.CHART,
      CategorizeCn: CategorizeCn.CHART,
    },
    {
      name: Component.UPLOAD,
      status: 1,
      des: `低代码-${ComponentCn.UPLOAD}`,
      Categorize: Categorize.FORM,
      CategorizeCn: CategorizeCn.FORM,
    },
    {
      name: Component.Grid,
      status: 0,
      des: `低代码-${ComponentCn.GRID_}`,
      Categorize: Categorize.ADVANCED,
      CategorizeCn: CategorizeCn.ADVANCED,
    },
    {
      name: Component.REPORT_TABLE,
      status: 1,
      des: `低代码-${ComponentCn.REPORT_TABLE}`,
      Categorize: Categorize.REPORT_FORM,
      CategorizeCn: CategorizeCn.REPORT_FORM,
    },
    {
      name: Component.TRANSFER_PLUS,
      status: 1,
      des: `低代码-${ComponentCn.TRANSFER_PLUS}`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.BASIC,
    },
  ],
  dataWorks: [
    {
      name: "CisDwDataSourceManagement",
      status: 1,
      des: `数据源管理`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.DW,
    },
    {
      name: "CisDwApiManagement",
      status: 1,
      des: `接口管理`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.DW,
    },
    {
      name: "CisDwPageDesign",
      status: 1,
      des: `数据大屏-设计器`,
      Categorize: Categorize.BASIC,
      CategorizeCn: CategorizeCn.DW,
    },
  ],
};
